//
// Created by Administrator on 2023/8/2.
//

#include <iostream>
#include <vector>

using namespace std;

class Solution {
public:
    int maximumCount(vector<int> &nums) {
        int minusIntNum = 0,
                plusIntNum = 0;
        for (int num: nums) {
            if (num == 0)
                continue;
            if (num < 0) {
                minusIntNum++;
            } else {
                plusIntNum++;
            }
        }
        return max(minusIntNum, plusIntNum);
    }
};

int main(int argc, const char *argv[]) {
    vector<int> nums = {-2, -1, -1, 1, 2, 3};
    Solution solution = Solution();
    int max = solution.maximumCount(nums);
    cout << max << endl;
    return 0;
}